package com.ltu.util;

import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ltu.domain.BaseEntity;

import io.swagger.annotations.ApiModelProperty;

public class ParentTreeEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value = "父级节点")
	private Integer parentId;
	@ApiModelProperty(value = " 深度 ")
	private Integer level;
	@ApiModelProperty(value = "是否是叶子节点 ")
	private Integer isLeaf;
	
	@ApiModelProperty(value = "儿子节点")
	@TableField(exist = false)
	private List<ParentTreeEntity> children;

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Integer getIsLeaf() {
		return isLeaf;
	}

	public void setIsLeaf(Integer isLeaf) {
		this.isLeaf = isLeaf;
	}

	public List<ParentTreeEntity> getChildren() {
		return children;
	}

	public void setChildren(List<ParentTreeEntity> children) {
		this.children = children;
	}

}
